package myky.com.doctorapp.model

import com.xiangyao.train.utils.RxScedulerHelper
import io.reactivex.Observable

import myky.com.doctorapp.api.ApiManager
import myky.com.doctorapp.entity.RemoteListEntity
import myky.com.doctorapp.base.BaseEntity

import myky.com.doctorapp.contract.RemoteDoctorListContract

/**
 * Description:
 *
 * @author wuyangwuyang
 * Created by 2019/1/9 on 10:00
 */
class RemoteDoctorListModel : RemoteDoctorListContract.Model {
    override fun getRemoteDoctorList(): Observable<BaseEntity<RemoteListEntity.PayLoadBean>> {

        return ApiManager.getApistore().remoteList.compose(RxScedulerHelper.io_main())
    }
}
